package com.ruoyi.baoming.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考生信息对象 tb_candidate
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
public class TbCandidate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考生ID */
    private Long id;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idNumber;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String password;

    /** 民族ID */
    @Excel(name = "民族ID")
    private Long ethnicityId;

    /** 政治面貌ID */
    @Excel(name = "政治面貌ID")
    private Long politicalStatusId;

    /** 外语语言ID */
    @Excel(name = "外语语言ID")
    private Long foreignLanguageId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setEthnicityId(Long ethnicityId) 
    {
        this.ethnicityId = ethnicityId;
    }

    public Long getEthnicityId() 
    {
        return ethnicityId;
    }
    public void setPoliticalStatusId(Long politicalStatusId) 
    {
        this.politicalStatusId = politicalStatusId;
    }

    public Long getPoliticalStatusId() 
    {
        return politicalStatusId;
    }
    public void setForeignLanguageId(Long foreignLanguageId) 
    {
        this.foreignLanguageId = foreignLanguageId;
    }

    public Long getForeignLanguageId() 
    {
        return foreignLanguageId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("idNumber", getIdNumber())
            .append("name", getName())
            .append("gender", getGender())
            .append("birthDate", getBirthDate())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("ethnicityId", getEthnicityId())
            .append("politicalStatusId", getPoliticalStatusId())
            .append("foreignLanguageId", getForeignLanguageId())
            .toString();
    }
}
